<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head><link rel="stylesheet" type="text/css" href="description/Combined.css,0:HeaderFooterSprite,0:Header.NonMtps,1:LinkList;/Areas/Centers/Themes/StandardDevCenter/Content:0,/Areas/Epx/Themes/Base/Content:1&amp;amp;hashKey=C9973DA951AE6202C9B348379A1BE49D" xmlns="http://www.w3.org/1999/xhtml" />
<link type="text/css" rel="stylesheet" xmlns="http://www.w3.org/1999/xhtml" />
<link rel="stylesheet" type="text/css" href="description/b79636be-b088-48b5-8a8d-c21645d26d2fCombined.css,0:HeaderFooterSprite,0:Footer.NonMtps,1:LinkList;/Areas/Centers/Themes/StandardDevCenter/Content:0,/Areas/Epx/Themes/Base/Content:1&amp;amp;hashKey=F576C687BC536B84D6E5B3246EE39B49" xmlns="http://www.w3.org/1999/xhtml" />
<link type="text/css" rel="stylesheet" xmlns="http://www.w3.org/1999/xhtml" />

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Windows Workflow Foundation (WF45) Getting Started Tutorial</title>
        <link href="description/Galleries.css" type="text/css" rel="Stylesheet" /><link href="description/Layout.css" type="text/css" rel="Stylesheet" /><link href="description/Brand.css" type="text/css" rel="Stylesheet" />
        <link href="description/iframedescription.css" rel="Stylesheet" type="text/css" />
        <script src="description/offline.js" type="text/javascript"></script>
        <style type="text/css">
            #projectInfo {
                overflow: auto;
            }
            #longDesc {
                clear:both;
                margin: 25px 0 10px 0;
            }

            #SampleIndexList{
                margin-left: 15px;
            }
        </style>
    </head>
<body>
    <div id="offlineDescription">
        <h1>Windows Workflow Foundation (WF45) Getting Started Tutorial</h1>
        <br/>
        <div id="projectInfo">
            <div class="section">
                    <div class="itemBarLong tagsContainer">
                        <label for="Technologies">Technologies</label>
                        <div id="Technologies">
                            Windows Workflow Foundation, WF45
                        </div>
                    </div>
                    <div class="itemBarLong tagsContainer">
                        <label for="Topics">Topics</label>
                        <div id="Topics">
                            Flowchart Workflow, State Machine Workflow, Sequential Workflow, Workflow Hosting, WorkflowApplica<wbr />tion
                        </div>
                    </div>
                <div class="itemBarLong">
                    <label for="Platforms">Platforms</label>
                    <div id="Platforms">
                        Desktop
                    </div>
                </div>
                <div class="itemBarLong">
                    <label for="Requirements">Requirements</label>
                    <div id="Requirements">
                        
                    </div>
                </div>
                <div class="itemBar">
                    <label for="LastUpdated">Primary language</label>
                    <div id="LastUpdated">en-US</div>
                </div>
                <div class="itemBar">
                    <label for="LastUpdated">Updated</label>
                    <div id="LastUpdated">8/22/2012</div>
                </div>
                <div class="itemBarLong">
                    <label for="License">License</label>
                    <div id="License">
                        <a href="license.rtf">MS-LPL</a></div>
                </div>
                <div class="itemBar">
                    <div class="viewonlinecont">
                        <a data-link="online" href="http://code.msdn.microsoft.com/Windows-Workflow-deed2cd5">View this sample online</a>
                    </div>
                </div>
            </div>
        </div>
        
                   
<script type="text/javascript">
    function initializePage() {
        var otherTabClass = 'otherTab';
        var hiddenPreClass = 'hidden';

        var htmlDecode = function(encodedData) {
            var decodedData = "";
            if (encodedData) {
                var div = document.createElement('div');
                div.innerHTML = encodedData;
                decodedData = div.firstChild.nodeValue.replace( /\\r\\n/ig , '\r\n');
            }
            return decodedData;
        };
                
        Galleries.iterateElem(Galleries.findElem(null, 'div', 'scriptcode'), function (index, scriptBlock) {
            var titleElem = Galleries.findElem(scriptBlock, 'div', 'title')[0];
            var labelElems = Galleries.findElem(titleElem, 'span');
            if (labelElems.length == 0) {
                labelElems = titleElem;
            }
            var languageSpans = Galleries.findElem(scriptBlock, 'span', 'hidden');
            var pres = Galleries.findElem(scriptBlock, 'pre');
            if (languageSpans.length > 0 && pres.length > 1) {
                Galleries.iterateElem(labelElems, function(index, elem) {
                    var codePre = pres[index];
                    var labelSpan = elem;
                    var languageSpan = languageSpans[index];
                            
                    elem.code = codePre.innerHTML.replace( /(\r(\n)?)|((\r)?\n)/ig , '\\r\\n');
                            
                    codePre.className = codePre.className.replace(hiddenPreClass, '');
                            
                    languageSpan.parentNode.removeChild(languageSpan);
                });

                pres = Galleries.findElem(scriptBlock, 'pre');
                Galleries.iterateElem(labelElems, function(index, elem) {
                    var codePre = pres[index];
                    var labelSpan = elem;
                    if (index == 0) {
                        scriptBlock.activeTab = 0;
                    }
                    else {
                        labelSpan.className += otherTabClass;
                        codePre.className += hiddenPreClass;
                    }
                    Galleries.attachEventHandler(labelSpan, 'click', function(e) {
                        var activeTab = scriptBlock.activeTab;
                        labelElems[activeTab].className += otherTabClass;
                        pres[activeTab].className += hiddenPreClass;

                        codePre.className = codePre.className.replace(hiddenPreClass, '');
                        labelSpan.className = labelSpan.className.replace(otherTabClass, '');
                        scriptBlock.activeTab = index;
                    });
                });

                var preview = Galleries.findElem(scriptBlock, 'div', 'preview');
                if (preview.length == 0) {
                    preview.push(pres[pres.length - 1]);
                }
                Galleries.iterateElem(preview, function(index, elem) {
                    elem.parentNode.removeChild(elem);
                });

                if (window.clipboardData && clipboardData.setData) {
                    var copyLink = document.createElement('a');
                    copyLink.href = 'javascript:void(0);';
                    copyLink.className = 'copyCode';
                    copyLink.innerHTML = 'Copy code';
                    Galleries.attachEventHandler(copyLink, 'click', function (e) {
                        clipboardData.setData("Text", htmlDecode(labelElems[scriptBlock.activeTab].code));
                        return false;
                    });
                    scriptBlock.insertBefore(copyLink, scriptBlock.childNodes[0]);
                }
            }
        });
    }

    Galleries.onWindowLoad(function(){
        initializePage();
    });

</script>
<div id="longDesc">
    
<p>This project is a completed version of the 7 steps of the <a href="http://msdn.microsoft.com/en-us/library/dd489454(VS.110).aspx">
WF45 Getting Started Tutorial</a>.</p>
<p>(For a WF4 version of the tutorial, including a video walkthrough for each of the steps in the tutorial, see
<a href="http://aka.ms/wf4gettingstarted">WF4 Getting Started Tutorial</a>.)</p>
<p>This tutorial illustrates:</p>
<ul>
<li>How to create custom activities using both composition and code </li><li>How to create State Machine, Flowchart, and Sequential workflows </li><li>How to host workflows using <a href="http://msdn.microsoft.com/en-us/library/system.activities.workflowapplication.aspx">
WorkflowApplication</a> </li><li>How to create a persistence database and host long running workflows </li><li>How to create a custom TrackingParticipant </li><li>How to use WorkflowIdentity to host multiple versions of a workflow side-by-side
</li><li>How to use Dynamic Update to modify the definition of a running workflow instance
</li></ul>
<p>Step 1, <a href="http://msdn.microsoft.com/en-us/library/dd489453(VS.110).aspx">
How to: Create an Activity</a>, demonstrates how to create a simple activity by using code to implement its execution logic and an activity whose implementation is defined by using other activities.</p>
<p>Step 2, <a href="http://msdn.microsoft.com/en-us/library/dd489437(VS.110).aspx">
How to: Create a Workflow</a>, demonstrates how to create a workflow using either a Flowchart workflow, a Sequential workflow, or a State Machine workflow, using built-in activities and the custom activities from the first step in the tutorial.</p>
<p>Step 3, <a href="http://msdn.microsoft.com/en-us/library/dd489463(VS.110).aspx">
How to: Run a Workflow</a>, demonstrates how to host a workflow using&nbsp;<a href="http://msdn.microsoft.com/en-us/library/system.activities.workflowapplication.aspx">WorkflowApplication</a>. It shows how to pass data into a workflow when starting the workflow,
 how to retrieve data from a completed workflow, and how to pass data into a running workflow using bookmarks.</p>
<p>Step 4, <a href="http://msdn.microsoft.com/en-us/library/dd489452.aspx">How to: Create and Run a Long Running Workflow</a>, demonstrates how to configure a workflow persistence database, and how to host a long running workflow in a Windows Forms host.</p>
<p>Step 5, <a href="http://msdn.microsoft.com/en-us/library/jj205426.aspx">How to: Create a Custom Tracking Participant</a>, demonstrates how to create a custom tracking participant that is used to display status about the progress of the workflow in the host
 application.</p>
<p>Step 6,<a href="http://msdn.microsoft.com/en-us/library/jj205425.aspx"> How to: Host Multiple Versions of a Workflow Side-by-Side</a>, demonstrates how to use the new versioning features in WF45 to host multiple versions of a workflow side-by-side in the
 same host application.</p>
<p>Step 7, <a href="http://msdn.microsoft.com/en-us/library/jj205427.aspx">How to: Update the Definition of a Running Workflow Instance</a>, demonstrates how to use Dynamic Update to update the definition of a running workflow instance.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

</div>


    </div>
</body>
</html>
